<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<title>打印机</title>
<link rel="stylesheet" href="/scriptZIP/layui.min.css">
	<link rel="stylesheet" href="../css/item.css">
	<link rel="stylesheet" href="../css/layui.css" />
</head>

<body>
	
	<div class="layui-row" id="vue-root">
		<div class="layui-col-md6 layui-col-md-offset3">
			<div class="layui-form-item">
				<label class="layui-form-label">名称</label>
				<div class="layui-input-block">
					<input name="name" v-validate="'required'" data-vv-as="名称" autocomplete="off" placeholder="请输入名称"
						class="layui-input name" v-model="item.name">
					<div class="checkout_state" v-text="err('name')"></div>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">机器码</label>
				<div class="layui-input-block">
					<input name="code" v-validate="'required'" data-vv-as="机器码" autocomplete="off" placeholder="请输入机器码"
						class="layui-input name" v-model="item.code">
					<div class="checkout_state" v-text="err('code')"></div>
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">模板头部</label>
				<div class="layui-input-block">
					<textarea placeholder="请输入模板头部" name="header" class="layui-textarea text"
						v-model="item.header"></textarea>
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">模板尾部</label>
				<div class="layui-input-block">
					<textarea placeholder="请输入模板尾部" name="footer" class="layui-textarea text"
						v-model="item.footer"></textarea>
				</div>
			</div>

			<div class="layui-form-item">
				<div class="layui-input-block">
					<div class="offer" @click="submit">立即提交</div>
					<div class="return" onclick="history.back()">取消</div>
				</div>
			</div>
		</div>
	</div>
	<script src="/scriptZIP/qs.min.js"></script>
	<script src="/scriptZIP/vue.min.js"></script>
	
	
	<script src="/scriptZIP/axios.min.js"></script>

	<script src="/js/common.js"></script>
	<script src="/js/item.js"></script>

	<script>
		var schoolId = top_params().id;

		var app = new Vue(merge({
			data: {
				item: {
					schoolId: schoolId
				},
				url: '/pc/printer',
			},
			methods: {

			},

		}));

	</script>
</body>

</html>